import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import path from 'path';
import { viteMockServe } from 'vite-plugin-mock'
// https://vitejs.dev/config/
export default defineConfig({
	// css:{},
	// esbuild:{},
	resolve:{
		//别名配置
		alias:{
			'@':path.resolve(__dirname,'src'),
			'comps':path.resolve(__dirname,'src/components'),
			'api':path.resolve(__dirname,'src/api'),
			'views':path.resolve(__dirname,'src/views'),
			'routes':path.resolve(__dirname,'src/routes'),
			'styles':path.resolve(__dirname,'src/styles'),
			'plugins':path.resolve(__dirname,'src/plugins'),
			'utils':path.resolve(__dirname,'src/utils')
		}
	},
  plugins: [vue(),vueJsx(),viteMockServe({supportTs:false})]
})
